Add a test for the metadata field