Improved test error message