Revert "Update warning matches in tests to be partial matches"

The failure under 5.18 is much more sinister than that, and Test::Warn
fails sometimes but not others.  Oy.

This reverts commit bfa350653a7b6fb62d56d3b5c8f7eca794d7ad58.