fixed the batch_spec to handle async testing