fix dangling config module between test cases

the fake 'config' module was being retained in sys.modules between test
runs which resulted in a merger of configs or simply the wrong config
being made available to each subsequent test run.