Update TestCases.js to fit new onError behaviour

Commented unregister operations after error, because now WS is closed on every error.