Fix race condition in testExpiresAsString

This race condition is common when running the tests with HHVM + JIT,
due to JIT overhead when not warmed up.