Fix bug where tests fought eachother

Specifically, they would all modify the same global state (the config object).
Now each test clears the config, sets it to what it needs, and clears it
again.  There are decorators to do this.