Fix configfile unittests 325

Fixes #325 

This is an implementation of @exarkun 's third suggestion on #325, using an environment variable.
I haven't documented this publicly because I think that it is only useful for testing.