improve test error messages