More stringent test of batch search
batch search: avoid returning more records than limit