made testRetry() more resilient