MDL-35762 core_grade: adding unit tests for modinfolib.php