added tests for invitations
added accept invitation tests
Merge pull request #4 from Illniyar/master

added tests for invitations