 
         @authDevice = sinon.stub().yields new Error
 
-        @sut = new MeshbluSocketIOHandler authDevice: @authDevice
+        @sut = new MeshbluSocketIOHandler authDevice: @authDevice, meshbluEventEmitter: @meshbluEventEmitter
         @sut.initialize @socket
         @sut = sinon.spy()
 


        @device = {some: 'device', uuid: '23955'}
        @authDevice = sinon.stub().yields null, @device
        @sut = new MeshbluSocketIOHandler authDevice: @authDevice
        @sut.initialize @socket
        @callback = sinon.spy()
        @socket.emit 'identity', uuid: '23955', token: '$###', @callback

        @authDevice = sinon.stub().yields null, @device
        @updateIfAuthorized = sinon.stub()

        @sut = new MeshbluSocketIOHandler authDevice: @authDevice, updateIfAuthorized: @updateIfAuthorized, meshbluEventEmitter: @meshbluEventEmitter
        @sut.initialize @socket
        @sut.authedDevice = uuid: '1345', token: 'toooooken'
        @sut = sinon.spy()
