MDL-40697 core_grades: added unit tests for grade_* events
MDL-40697 mod_*: fixed unit tests so they pass