Fix test run in the browser