Add test code for getting name and credit hours