Add test code for calculating the needed course grade