Unit tests for req and batches get_details