Corrects rspec tests