Fix isGroupMembers, added tests for it