how I write tests in node and the browser