Add test case for resolving metadata.