Fix tests to not have knowledge of the internals of the exporter