Add unit tests with a real metadata.json