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.
Merge pull request #181 from cscott/date-test-fix

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