Description
When checking metadata, we can test that extra metadata is present, but we can't verify the values of that metadata. Our tests should also transform the metadata map in order to inspect the metadata values.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- better guarantees around emitted metadata
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist