diff --git a/workflow/main.nf b/workflow/main.nf
index ed2c9e8a3b070a46e57355590b1a53e0dfb51bf6..a6f486f2598a076c900eb68816ea2f2e131b225e 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -463,7 +463,7 @@ peaksDesign = experimentPeaks
 
 //plotProfile
 process plotProfile {
-  publishDir "$outDir/${task.process}", mode: 'copy'
+  publishDir "$outDir/experimentQC", mode: 'copy'
 
   input:
 
@@ -472,7 +472,7 @@ process plotProfile {
 
   output:
 
-  file("*.png") into plotProfile
+  file(".{png,gz}") into plotProfile
 
   when:
 
diff --git a/workflow/tests/test_plot_profile.py b/workflow/tests/test_plot_profile.py
new file mode 100644
index 0000000000000000000000000000000000000000..6c9605d6d654f66adec865372223e13ddeaf6b19
--- /dev/null
+++ b/workflow/tests/test_plot_profile.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+import pytest
+import os
+import utils
+
+test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
+                '/../output/experimentQC/'
+
+
+@pytest.mark.singleend
+def test_plot_singleend():
+    assert os.path.exists(os.path.join(test_output_path, 'plotProfile.png'))
+
+
+@pytest.mark.pairedend
+def test_plot_pairedend():
+    assert os.path.exists(os.path.join(test_output_path, 'computeMatrix.gz'))