Improve test suite
Disable batches by default
Fix memory leak for csv export in batches