Improve test logging.