           request.get ssoTokenLoginRequestParams, (err, res, body) ->
             expect(err).to.not.exist
             expect(res.statusCode).to.be.equal 400
-            expect(body).to.be.equal 'user is not a member of the group'
+            expect(JSON.parse body).to.be.deep.equal { error : apiErrors.notGroupMember }
             queue.next()
 
         -> done()

    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'
      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.invalidSSOTokenPayload }
      done()


