Added tests for ClassMetadata