revamping tests to work in the browser