removed tests for websocket
fixed issue with event listener leak