Improve websocket tests