refs #11 Implement test case for WritePeerMetadataFromJSON