modified rspec tests