Deprecation warnings

part of #164

If you upgraded rspec, you would get deprecation warnings. This PR changes the tests to fix the warnings