Improve test error log