Add $overrideConfig to _compile_file function
Add test static function to test the config file.