add test for batch
fix batch
2.1.1