Add test for batch()
Add test for publish_staging_resource()