Add test for metadata