Improve the way test suite reports error messages at DEBUG=1