Corrected error messages for provider test cases