Fix/master/issue 3415

Fixes #3415
@ahmetmircik 

I added these additional checks to be sure about elapsed time.
For example if there are other tests run at background, IMHO "Thread.sleep(5000) + Thread.sleep(2500)" doesn't mean that totally 7500 msecs passed. So I added these checks to sure about passed time. 
I thinks, previous failures of this test can be causes from this case I mentioned above.

WDYT ?