run tests in node and then in the browser