socket.io unit tests