Refactoring deleteCourseFromDb() method tests