completed globals.js tests