Apply globals hack to tests to allow SockJS-client to work node-only env