scanner: adapt and simplify ErrorList and ErrorHandler test
2 files changed