test serialization of EC metadata