Add initial Batch API test code