Add test coverage to course groups app

TNL-21

@jimabramson @andy-armstrong 
Also test what happens when deleting a non-existent cohort.