fix some rspec deprecation warnings