Test that the user belongs to a group.