Wait for resque tasks to finish in integration tests

before cleaning redis database to prevent race condition in tests

Signed-off-by: Maria Shaldibina <mshaldibina@pivotal.io>