Apply group type fiter 1013

@mattdrayer  @chrisndodge 
Applied group type filters on users, courses and wrote their test cases as well.