testing caching of ExternalMetadata