[TEST] Wait for shards to allocate before cleaning caches