added tests for JoinInvitation