MDL-36061 core_grade: added some unit tests related to refresh_grades()