added test for user responding to invitations