diff --git a/workflow/tests/test_motif_search.py b/workflow/tests/test_motif_search.py
index b66c81314941ca3f0d291f242565c3837a1b7a2b..5f12ac08d703e8fb7f68772f9d5a0e8a070fb13c 100644
--- a/workflow/tests/test_motif_search.py
+++ b/workflow/tests/test_motif_search.py
@@ -21,7 +21,7 @@ def test_limited_peaks_singleend():
 def test_motif_search_singleend():
     assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'ENCSR238SGC.fa'))
     assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'index.html'))
-    assert os.path.getsize(test_output_path + 'ENCSR238SGC.fa') > 0
+    assert os.path.getsize(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'ENCSR238SGC.fa')) > 0
 
 @pytest.mark.singleskip_true
 def test_motif_search_singleend():
@@ -39,4 +39,4 @@ def test_limited_peaks_pairedend():
 def test_motif_search_pairedend():
     assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_memechip',  'ENCSR729LGA.fa'))
     assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_memechip', 'index.html'))
-    assert os.path.getsize(test_output_path + 'ENCSR729LGA.fa') > 0
+    assert os.path.getsize(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'ENCSR729LGA.fa')) > 0