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

          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'

