Fix test suite error reporting