Make time test more stable.