Fix typo
Add functions to start/stop ws server
Add start/stop ws server in tests
Add on receive data test