Chat application test with node.js