add dynamic wait support at the end of the test