Invitation token

Fix invitation spec. All tests are green.