     request.get ssoTokenLoginRequestParams, (err, res, body) ->
       expect(err).to.not.exist
       expect(res.statusCode).to.be.equal 400
-      expect(body).to.be.equal 'token is required'
+      expect(JSON.parse body).to.be.deep.equal { error : apiErrors.missingRequiredQueryParameter }
       done()
 
 

    request.get ssoTokenLoginRequestParams, (err, res, body) ->
      expect(err).to.not.exist
      expect(res.statusCode).to.be.equal 400
      expect(body).to.be.equal 'no group slug in token'
      done()



          request.get ssoTokenLoginRequestParams, (err, res, body) ->
            expect(err).to.not.exist
            expect(res.statusCode).to.be.equal 400
            expect(JSON.parse body).to.be.deep.equal { error : apiErrors.notGroupMember }
            queue.next()

        -> done()
