Metadata: add toFormattedString() method
test: add unit tests for MetadataWrapper