Wait for resources more intelligently in integration tests

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>