diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -4,6 +4,8 @@ from collections import defaultdict
 
 from yaml import load
 
+from detectem.matchers import PluginMatch
+
 
 def load_from_yaml(test_dir, relative_yaml_file):
     final_path = os.path.join(test_dir, relative_yaml_file)
@@ -20,3 +22,7 @@ def load_from_yaml(test_dir, relative_yaml_file):
 
 def tree():
     return defaultdict(tree)
+
+
+def create_pm(name=None, version=None, presence=False):
+    return PluginMatch(name, version, presence)
diff --git a/tests/test_matchers.py b/tests/test_matchers.py
index <HASH>..<HASH> 100644
--- a/tests/test_matchers.py
+++ b/tests/test_matchers.py
@@ -3,7 +3,6 @@ import re
 import pytest
 
 from detectem.matchers import (
-    PluginMatch,
     extract_named_group,
     extract_version,
     extract_name,
@@ -13,9 +12,7 @@ from detectem.matchers import (
     XPathMatcher,
 )
 
-
-def create_pm(name=None, version=None, presence=False):
-    return PluginMatch(name, version, presence)
+from tests import create_pm
 
 
 def res_text(text):
Move create_pm from test_matchers to tests main module