extract as many as we need an batches of the amount returned by the test.