wait for puts to finish in batch test