added tests for NamedVocabulary