Tweak deprecation assertion messages for clarity

Improve the usefulness of the deprecation failures in tests.