adding new method for batch persist
unit test for batch persist
api change, version change