improve test helper error message