Shim Date.now() in test pages