add a unit test for the implmentation of course service