Math test for teaching students being challenged in court