Bug 906399 - convert test-globals.js to use the new test framework