testing: improve error reporting