node.js test code for server