Adding unit tests for WebsocketAdapter