Add test code for initializing Course with name and credit hours