diff --git a/tests/test_fsl_utils_path.py b/tests/test_fsl_utils_path.py
index 9a567396f6ea119cd6488c058fb05fe6e4a231ca..7016bfb9ab2ae3823d18894069982f31ec8da140 100644
--- a/tests/test_fsl_utils_path.py
+++ b/tests/test_fsl_utils_path.py
@@ -110,6 +110,21 @@ def test_shallowest():
         assert fslpath.shallowest(path, suffixes) == output
 
 
+def test_allFiles():
+    create = [
+        'a/1',
+        'a/2',
+        'a/b/1',
+        'a/b/2',
+        'a/b/c/1',
+        'a/b/d/1',
+    ]
+
+    with testdir(create) as td:
+        assert fslpath.allFiles('.') == [op.join('.', c) for c in create]
+        assert fslpath.allFiles(td)  == [op.join(td,  c) for c in create]
+
+
 def test_hasExt():
 
     tests = [