Unit tests for Batch processing and queries