Improve test error messages.