tests: fix one more DeprecationWarning