Issue #2431477 by martin107: make TermUnitTest a KernelTestBase by moving createTerm and createVocabulary to a trait