Add test coverage to course groups app

TNL-21

@jimabramson @andy-armstrong 
alternate suggestion: just get rid of this helper and inline it, it seems to only be used from one test?