Testing for a web server-client with node.js