make sure to print error-cause in tests if available