add missing MetadataService tests