Modified rspec tests