waitFor utility + integration test
Merge pull request #24 from lightsofapollo/wait-for

waitFor utility + integration test