Remove deprication warnings from rspec tests