Makes tests work on the browser.