Refactored all the config tests so I can re-use a lot of it to test merging configs and cmdline args