Updated and expanded the config writer tests with correct assertions and a minor fix on the config writer