add detailed error messages in test