Minor test.js cleanup. [ci skip]
Avoid detecting the `global` function in Java based environments like Rhino as the `freeGlobal`.