fix deprecation warnings in rspec tests