integration tests for export and bulk_export