Add some tests for Metadata