added mock config file and rspec tests