KNOX-280: Add more retry/timeout logic to make test more resilient.