MDL-40697 core_grade: added unit tests for grade_created/updated events