Fix DeprecationWarnings in test suite
4 files changed