Semantic plugin tests refactoring