fix: __karma__.error doesn't exist, calling window.console.error instead