Improved test error messages