Fixed the tests for metadata extension so that they compile and run