Add test coverage to course groups app

TNL-21

@jimabramson @andy-armstrong 
I have verified permissions of staff and non-staff in all of the test cases.