Refactor - Websocket test class