test case for findbatch