Add extra tests for ClassMetadata