added optional identifier parameter to ListMetadataFormats method and added tests