Hundreds of students ordered to retake AP exams