add batch operate api unit testing