High school seniors take last-chance exit test while judge prepares to strike it down