Fix test case for Date.prototype.valueOf().

This test case failed when run in a UTC timezone, because 0 is not truthy.
Use a more precise test for an integer value.

Fixes #181.