fixed rspec errors