diff --git a/tests/tests.js b/tests/tests.js
index <HASH>..<HASH> 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -101,7 +101,7 @@
     }
 
     // If $SPLUNK_HOME isn't set, abort the tests
-    if (!process.env.hasOwnProperty("SPLUNK_HOME")) {
+    if (!Object.prototype.hasOwnProperty.call(process.env, "SPLUNK_HOME")) {
         console.log("$SPLUNK_HOME is not set, aborting tests.");
         return;
     }
Fix test script to work w/ node <I>.x

Apparently process.env doesn't have the
hasOwnProperty method, so we need to
invoke it from Object.prototype instead.