Remove require of globals in viewEngine.test.js