refactor user_config.rb
refactor user_config.rb
add user_config_spec tests