add tests for SendInvite method