tests: Add MetadataParserChainTest and supporting mock objects