Fix test related to course_groups

CC @antoviaque