Fixed user tests by using socket.io-client to mock a client