update tests to run with browser globals