MDL-31713 core_grade:added a unit test to replicate a raw grade max bug