remove rspec deprecation warnings from spec tests