           .reply(204)
 
         @whoamiUpdateHandler = @whoamiUpdateRequest
-          .reply(200, uuid: 'device-uuid', type: 'meshblu:verifier', nonce: 'some-nonce')
+          .reply(200, uuid: 'device-uuid', type: 'meshblu:verifier', nonce: @nonce)
 
         @unregisterHandler = @unregisterRequest
           .reply(204)

    @meshblu = shmock done

  beforeEach ->
    meshbluConfig = server: 'localhost', port: @meshblu.address().port
    @sut = new Verifier {meshbluConfig, nonce: 'some-nonce'}

  afterEach (done) ->
    @meshblu.close done

          .reply(204)

        @whoamiUpdateHandler = @whoamiUpdateRequest
          .reply(200, uuid: 'device-uuid', type: 'meshblu:verifier', nonce: @nonce)

        @unregisterHandler = @unregisterRequest
          .reply(500)
