 
           ->
             # expecting invitation not to be created
-            JInvitation.one { email: userFormData.email, groupName: group.slug }, (err, invitation) ->
+            params = { email: userFormData.email, groupName: group.slug }
+            JInvitation.one params, (err, invitation) ->
               expect(err).to.not.exist
               expect(invitation).to.not.exist
               queue.next()

        userFormData      = generateDummyUserFormData()
        adminUserFormData = generateDummyUserFormData()


        queue = [

          ->


          ->
            # expecting invitation to exist
            params = { email: userFormData.email, groupName: client.context.group }
            JInvitation.one params, (err, invitation) ->
              expect(err).to.not.exist
              expect(invitation).to.exist
              queue.next()
