prepare test case and variables for dynamic batching