DocCode: added ccjs.model.metadata to support "Metadata By Hand" doc
Plus simple tests of it and a little cleanup of metadata tests