test: improve expectWarning error message
expectWarning() fails with a TypeError and a message about undefined not being iterable when the warning is emitted more times than expected. This change produces a more useful error message.
Refs: https://github.com/nodejs/node/pull/41307/files#r775197738