Fixed metadata type declaration and test output so they validate.