added tests to the invitation controller spec