fixing typo in error message, adding test for undefined provider in catalog