         server.on 'close', done
 
       it 'should have an additional header in the request', () ->
-        assert.equal recievedRequest.headers.accept, 'application/json'
+        assert.equal receivedRequest.headers.accept, 'application/json'
 
       it 'exit status should be 0', () ->
         assert.equal exitStatus, 0

        app = express()

        app.get '/machines', (req, res) ->
          recievedRequest = req
          res.setHeader 'Content-Type', 'application/json'
          machine =
            type: 'bulldozer'

        server.on 'close', done

      it 'should modify the transaction with hooks', () ->
        assert.equal receivedRequest.headers['header'], '123232323'
        assert.equal receivedRequest.query['key'], 'value'

      it 'should print message to stdout and stderr', ->
        assert.include stdout, 'before-hook-GET-machines'
