MDL-38732 gradereport_grader: Undefined variable in unit tests