Add tests for websocket protocol

- add tests for `initializationMessage`, `readMessage`, `subscribeMessage` and `unsubscribeMessage` protocol