added test for batch