better unit tests for websockets and additional web socket implementation