waitFor method
Merge pull request #1071 from cohitre/waitFor

waitFor test helper