Fixed running tests in a browser