Better handling of delay option in tests/examples
Test of search in batches