Refactored install_config_files, added tests