add tests for invitations