Better timing expiration in tests