collapse_metadata_maps tests