Added unit tests for parseGrades function.