refactoring of testGetTeamsForCourse