Add test coverage to course groups app

TNL-21

@jimabramson @andy-armstrong 
It would be good to verify that an appropriate exception is thrown when getting the cohort names for an invalid id.