Add unittest for BatchClient.