fix error reporting in test suites