Add test code for calculating number of grades entered in a category