added test to check for existing invitations
fixed issues with flash in invitations_contoller showing up improperly