better support for testing in the browser