fix deprecation rspec errors