Judge hears school reopening case