Add tests for CourseService
This MR adds for CourseService. It also makes sure a role is saved before any of the other entities is saved in their repositories to make sure it does not fail.
This MR adds for CourseService. It also makes sure a role is saved before any of the other entities is saved in their repositories to make sure it does not fail.