Websockets unit tests