Fix warning in AV tests

Originally caused by #17771