[fix] create batches when recursing
test_recurse implementation
Merge bzr trunk