Add test coverage to course groups app

TNL-21

@jimabramson @andy-armstrong 
You can simplify this to ```set()``` as the default is an empty set.