chore: address some deprecation lints in tests (#16420)

This PR replaces some uses of deprecated constants with their
replacements.

This covers only the "easy" cases, more difficult cases remain.
16 files changed