add in exponential wait time for TaskState.TASK_FAILED cases, the defaul...

Added in exponential incremental retry wait time for TaskState.TASK_FAILED cases.
The default wait time is starting at 10 secs.
Please don't use `Thread.sleep` this test will add >8 seconds to the total test execution time.