added rspec tests defaults and validation