added grading function to testmaker