             clonedTransaction = clone(transaction)
             runner.hooks.afterHooks =
               'Group Machine > Machine > Delete Message > Bogus example name' : [
-                (transaction) ->
-                  clonedTransaction.fail = "Message after"
+                (hookTransaction) ->
+                  hookTransaction.fail = "Message after"
               ]
 
           it 'should not pass the failing message to the emitter', (done) ->

          clonedTransaction = clone transaction
          runner.hooks.afterHooks =
            'Group Machine > Machine > Delete Message > Bogus example name' : [
              (transaction) ->
                clonedTransaction.fail = "Message after pass"
            ]
          sinon.stub configuration.emitter, 'emit'



          runner.hooks.afterHooks =
            'Group Machine > Machine > Delete Message > Bogus example name' : [
              (hookTransaction) ->
                hookTransaction.fail = "Message after fail"
            ]
          sinon.stub configuration.emitter, 'emit'

