added support for running test in the browser