rspec for loss