Fixed rspec errors