add tests for classMetadata