refactored params_spec.rb