Close config files and use ReadAll in config_test