References correct variable name in testHook()