Fixed deprecation warnings in tests
[git-p4: depot-paths = "//src/image_science/dev/": change = 9641]