unit test of course class