Ensure only failing deprecations are logged by test helpers.
Add deprecations for Map.prototype.remove and Map.prototype.length.