Testing Node.js socket