Add a test for BuildMetadata.
Ensure the metadata has the file info set.