Green-green refactor of ConfigFile helper.
Add specs for Repository helper.