Add tests for websocket connection being lost