Added tests for course service