fix tests in the browser