Add controller spec for class_groups/courses
Refactor class_groups/semesters_class_groups controller