improving testing
invititation code redirect fixed