Cleanup Config, tests for reading and writing