slightly clean up unit test of cmd_config...

don't use environment variables, instead use a Test override
step in the environment setup.  This doesn't really solve any limitations
of testing (like can't run parallel tests due to global variables), but
it does clean the code up a bit by not having to pass configuration
though the environment