rspec tests updated