Shouldn't you redefine `console.error` after this test?