Re-vamp integration testing
Integration testing should look as much as possible like running the command-line tools.
So:
- Write a config file to disk, then reference it in the command line calls
- Also test the main function
- Stop patching KVObject.setup indefinitely, which had scattered side effects on unit tests