MDL-46571 gradereport_history: Unit tests for the table_sql results
MDL-46571 gradereport_history: Unit tests for helper user methods