updated rspec tests