Fix `error reporting` test