Fix Rspec deprecation warnings when run test suite