Make the tests work in the browser