[bug 896961] Small refactor for two global.js unit tests
Merge pull request #1137 from alexgibson/update-globaljs-unit-tests

[bug 896961] Small refactor for two global.js unit tests