Semantic plugin: tests refactoring