MDL-31713 core_grade:added a unit test to replicate a raw grade max bug
MDL-31713 core_grade: added updating of grade min and max to update_final_grade()