Test case for GroupMembership.