Fix metadat tests