added test for config.writeJson()