Fixed test clear_index
Added waitTask in test_batch
Fixed test_browse with clearIndex