 
 
 settings = require '../../boot/settings'
-IDToken           = require '../../models/IDToken'
+Client = require '../../models/Client'
+IDToken = require '../../models/IDToken'
 {signout} = require('../../oidc')
 
 

            set: sinon.spy()
            send: sinon.spy()
            redirect: sinon.spy()
          next = sinon.spy()
          signout(req, res, next)

        it 'should not update OP browser state', ->
          req.session.opbs.should.equal opbs

        #it 'should provide an error', ->
        #  next.should.have.been.called

        it 'should not redirect', ->
          res.redirect.should.not.have.been.called


      describe 'and client get error', ->

        before (done) ->
          sinon.stub(Client, 'get').callsArgWith(1, new Error())
          opbs = 'b3f0r3'
          req =
            query:
