Fixed rspec testing