change tests to work in the browser