Get error msgs more readable in test code