fixed rspec deprecations