fixed rspec test not passing