MDL-46997 Grades: Improve the behat tests for grade aggregation

The tests now cover hidden grades in sub categories for all aggregation types. This change
includes a data generator for grade categories.