Fix tests to be compatible with socket.io