diff --git a/test/patch/patch.js b/test/patch/patch.js
index <HASH>..<HASH> 100644
--- a/test/patch/patch.js
+++ b/test/patch/patch.js
@@ -1,12 +1,10 @@
-(function(window) {
-  var originalLookup = window.Handlebars.JavaScriptCompiler.prototype.nameLookup;
+var originalLookup = Handlebars.JavaScriptCompiler.prototype.nameLookup;
 
-  window.Handlebars.JavaScriptCompiler.prototype.nameLookup = function(parent, name, type) {
-    if (type === 'context') {
-      return '"CALLED PATCH"';
-    }
-    else {
-      return originalLookup.call(this, parent, name, type);
-    }
-  };
-})(this);
+Handlebars.JavaScriptCompiler.prototype.nameLookup = function(parent, name, type) {
+  if (type === 'context') {
+    return '"CALLED PATCH"';
+  }
+  else {
+    return originalLookup.call(this, parent, name, type);
+  }
+};
fix failing #test_patching_handlebars