Improve bad input handling

I've added cases for the following:

* User does not have FOG_CREDENTIAL set
* User has FOG_CREDENTIAL set to a value not in our config file.

I've also switched the tests to use stub_const(ENV) rather than manipulate the ENV directly -- it is safer and more contained.