This has potential for a race condition. Using `<= Date.now()` is safer, and if you want to make sure `lastModified` updates to a later date after update, you can loop and continue updating until it is a later date. The test failure will essentially be a timeout if there is an issue.