Fixing Rspec tests