Better spec coverage for config file parsing
Extract module refactoring of config code