rspec errors fixed