apply test to replacing websocket