fixed rspec code