updated rspec test spec