MDL-32076 core_grade: fixed the ajax handling of unlimited grades
MDL-32076 core_grade: added some basic unit tests for the grader report