[Model Metadata] Add convenience method and refactor unit tests