modified rspec test