added tests for invitations