testing dynamic waitTime