Add test coverage to course groups app

TNL-21

@jimabramson @andy-armstrong 
please update the docstring to reflect that this function returns a set, not a list