skeleton for batched test cases, fixed bugs