Add test coverage for repository.export()