Add integration tests for exporting