Adjust mocking to ensure coverage in modularized builds.
Avoid false fail in environments that add an enumerable `constructor` property to `Date` objects.