From 19380e0b59fa13a3f5f6385ce00a9c60a2b05037 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Mon, 9 Aug 2021 15:32:17 +0100
Subject: [PATCH] RF: re-work applyxfm tests - no longer rely on external data.
 Use benchmark data for evaluation

---
 .../applyxfm4D/applyxfm4D_fail/feedsInputs    |   1 -
 .../applyxfm4D/applyxfm4D_fail/feedsRun       |  33 -----------------
 .../applyxfm4D_fourdigit/feedsInputs          |   1 -
 .../applyxfm4D/applyxfm4D_fourdigit/feedsRun  |  34 -----------------
 unit_tests/applyxfm4D/applyxfm4D_in.nii.gz    |   3 ++
 unit_tests/applyxfm4D/applyxfm4D_mat.mat      |   4 ++
 .../applyxfm4D/applyxfm4D_nn/feedsInputs      |   1 -
 unit_tests/applyxfm4D/applyxfm4D_nn/feedsRun  |  33 -----------------
 unit_tests/applyxfm4D/applyxfm4D_ref.nii.gz   |   3 ++
 .../applyxfm4D/applyxfm4D_sinc/feedsInputs    |   1 -
 .../applyxfm4D/applyxfm4D_sinc/feedsRun       |  33 -----------------
 .../applyxfm4D_singlematrix/feedsInputs       |   1 -
 .../applyxfm4D_singlematrix/feedsRun          |  34 -----------------
 .../applyxfm4D/applyxfm4D_spline/feedsInputs  |   1 -
 .../applyxfm4D/applyxfm4D_spline/feedsRun     |  33 -----------------
 .../applyxfm4D_transdir/feedsInputs           |   1 -
 .../applyxfm4D/applyxfm4D_transdir/feedsRun   |  33 -----------------
 .../applyxfm4D_trilinear/feedsInputs          |   1 -
 .../applyxfm4D/applyxfm4D_trilinear/feedsRun  |  33 -----------------
 .../applyxfm4D_userprefix/feedsInputs         |   1 -
 .../applyxfm4D/applyxfm4D_userprefix/feedsRun |  35 ------------------
 unit_tests/applyxfm4D/feedsRun.fail           |  21 +++++++++++
 unit_tests/applyxfm4D/feedsRun.fourdigit      |  19 ++++++++++
 unit_tests/applyxfm4D/feedsRun.nn             |  19 ++++++++++
 unit_tests/applyxfm4D/feedsRun.sinc           |  19 ++++++++++
 unit_tests/applyxfm4D/feedsRun.singlematrix   |  19 ++++++++++
 unit_tests/applyxfm4D/feedsRun.spline         |  19 ++++++++++
 unit_tests/applyxfm4D/feedsRun.transdir       |  18 +++++++++
 unit_tests/applyxfm4D/feedsRun.trilinear      |  19 ++++++++++
 unit_tests/applyxfm4D/feedsRun.userprefix     |  20 ++++++++++
 .../.DS_Store                                 | Bin
 .../applyxfm4D/matfiles_five_digit/MAT_00000  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00001  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00002  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00003  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00004  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00005  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00006  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00007  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00008  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00009  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00010  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00011  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00012  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00013  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00014  |   4 ++
 .../applyxfm4D/matfiles_five_digit/MAT_00015  |   4 ++
 .../applyxfm4D/matfiles_four_digit/.DS_Store  | Bin 0 -> 6148 bytes
 .../applyxfm4D/matfiles_four_digit/MAT_0000   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0001   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0002   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0003   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0004   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0005   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0006   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0007   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0008   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0009   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0010   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0011   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0012   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0013   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0014   |   4 ++
 .../applyxfm4D/matfiles_four_digit/MAT_0015   |   4 ++
 .../applyxfm4D/matfiles_user_prefix/.DS_Store | Bin 0 -> 6148 bytes
 .../matfiles_user_prefix/myprefix_0000        |   4 ++
 .../matfiles_user_prefix/myprefix_0001        |   4 ++
 .../matfiles_user_prefix/myprefix_0002        |   4 ++
 .../matfiles_user_prefix/myprefix_0003        |   4 ++
 .../matfiles_user_prefix/myprefix_0004        |   4 ++
 .../matfiles_user_prefix/myprefix_0005        |   4 ++
 .../matfiles_user_prefix/myprefix_0006        |   4 ++
 .../matfiles_user_prefix/myprefix_0007        |   4 ++
 .../matfiles_user_prefix/myprefix_0008        |   4 ++
 .../matfiles_user_prefix/myprefix_0009        |   4 ++
 .../matfiles_user_prefix/myprefix_0010        |   4 ++
 .../matfiles_user_prefix/myprefix_0011        |   4 ++
 .../matfiles_user_prefix/myprefix_0012        |   4 ++
 .../matfiles_user_prefix/myprefix_0013        |   4 ++
 .../matfiles_user_prefix/myprefix_0014        |   4 ++
 .../matfiles_user_prefix/myprefix_0015        |   4 ++
 81 files changed, 375 insertions(+), 310 deletions(-)
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_fail/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_fail/feedsRun
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsRun
 create mode 100644 unit_tests/applyxfm4D/applyxfm4D_in.nii.gz
 create mode 100644 unit_tests/applyxfm4D/applyxfm4D_mat.mat
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_nn/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_nn/feedsRun
 create mode 100644 unit_tests/applyxfm4D/applyxfm4D_ref.nii.gz
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_sinc/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_sinc/feedsRun
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsRun
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_spline/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_spline/feedsRun
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_transdir/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_transdir/feedsRun
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsRun
 delete mode 100644 unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsInputs
 delete mode 100755 unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsRun
 create mode 100755 unit_tests/applyxfm4D/feedsRun.fail
 create mode 100755 unit_tests/applyxfm4D/feedsRun.fourdigit
 create mode 100755 unit_tests/applyxfm4D/feedsRun.nn
 create mode 100755 unit_tests/applyxfm4D/feedsRun.sinc
 create mode 100755 unit_tests/applyxfm4D/feedsRun.singlematrix
 create mode 100755 unit_tests/applyxfm4D/feedsRun.spline
 create mode 100755 unit_tests/applyxfm4D/feedsRun.transdir
 create mode 100755 unit_tests/applyxfm4D/feedsRun.trilinear
 create mode 100755 unit_tests/applyxfm4D/feedsRun.userprefix
 rename unit_tests/applyxfm4D/{applyxfm4D_singlematrix => matfiles_five_digit}/.DS_Store (100%)
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00000
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00001
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00002
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00003
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00004
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00005
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00006
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00007
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00008
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00009
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00010
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00011
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00012
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00013
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00014
 create mode 100644 unit_tests/applyxfm4D/matfiles_five_digit/MAT_00015
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/.DS_Store
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0000
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0001
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0002
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0003
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0004
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0005
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0006
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0007
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0008
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0009
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0010
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0011
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0012
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0013
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0014
 create mode 100644 unit_tests/applyxfm4D/matfiles_four_digit/MAT_0015
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/.DS_Store
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0000
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0001
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0002
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0003
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0004
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0005
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0006
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0007
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0008
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0009
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0010
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0011
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0012
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0013
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0014
 create mode 100644 unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0015

diff --git a/unit_tests/applyxfm4D/applyxfm4D_fail/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_fail/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_fail/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_fail/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_fail/feedsRun
deleted file mode 100755
index e9301f0..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_fail/feedsRun
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D correct failure
-"""
-from subprocess import run, PIPE, CalledProcessError
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-# applyxfm4D fmri.nii.gz brain.nii.gz applyxfm4D_out f2b.mat -singlematrix -interp nn
-def test_applyxfm4D_fail():
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_mat.mat')
-    ]
-    try:
-        run_result = run(cmd, stdout=PIPE, check=True)
-        stdout_string = run_result.stdout.decode('utf-8')
-        assert False
-    except CalledProcessError as e:
-        print("test_applyxfm4D correctly failed. This is good!")
-        assert e.returncode != 0
-
-print("running test_applyxfm4D_fail()")
-test_applyxfm4D_fail()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsRun
deleted file mode 100755
index 51fac7f..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_fourdigit/feedsRun
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D matfile directory option with 4 digit numbers in filenames 
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_fourdigit():
-    # use trilinear interp for speed
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'matfiles_four_digit'),
-        '-interp',
-        'trilinear',
-        '-fourdigit'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_fourdigit()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_in.nii.gz b/unit_tests/applyxfm4D/applyxfm4D_in.nii.gz
new file mode 100644
index 0000000..0dd52e2
--- /dev/null
+++ b/unit_tests/applyxfm4D/applyxfm4D_in.nii.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e7b83c2989851f4c800a4fcd9f66a9cd7caa130cd760d810108b6f3a769bda26
+size 58355
diff --git a/unit_tests/applyxfm4D/applyxfm4D_mat.mat b/unit_tests/applyxfm4D/applyxfm4D_mat.mat
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/applyxfm4D_mat.mat
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/applyxfm4D_nn/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_nn/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_nn/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_nn/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_nn/feedsRun
deleted file mode 100755
index 20073bd..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_nn/feedsRun
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D nn interp
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_nn():
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_mat.mat'),
-        '-singlematrix',
-        '-interp',
-        'nn'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_nn()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_ref.nii.gz b/unit_tests/applyxfm4D/applyxfm4D_ref.nii.gz
new file mode 100644
index 0000000..a8ffd82
--- /dev/null
+++ b/unit_tests/applyxfm4D/applyxfm4D_ref.nii.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a519fe29b81f5bb1346828f95318bd3bc2eddba641c465b6ee93eb8ac878a52
+size 88593
diff --git a/unit_tests/applyxfm4D/applyxfm4D_sinc/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_sinc/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_sinc/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_sinc/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_sinc/feedsRun
deleted file mode 100755
index 008de98..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_sinc/feedsRun
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D sinc interp
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_sinc():
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_mat.mat'),
-        '-singlematrix',
-        '-interp',
-        'sinc'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_sinc()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsRun
deleted file mode 100755
index 76ce739..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_singlematrix/feedsRun
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D single matrix option
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_singlematrix():
-    # use nearestneighbour interp for speed
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_mat.mat'),
-        '-singlematrix',
-        '-interp',
-        'nn'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_singlematrix()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_spline/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_spline/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_spline/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_spline/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_spline/feedsRun
deleted file mode 100755
index c9d2046..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_spline/feedsRun
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D spline interp
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_spline():
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_mat.mat'),
-        '-singlematrix',
-        '-interp',
-        'spline'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_spline()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_transdir/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_transdir/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_transdir/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_transdir/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_transdir/feedsRun
deleted file mode 100755
index 69428e8..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_transdir/feedsRun
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D matfile directory option 
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_transdir():
-    # use trilinear interp for speed
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'matfiles_five_digit'),
-        '-interp',
-        'trilinear'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_transdir()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsRun
deleted file mode 100755
index 285e95f..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_trilinear/feedsRun
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D trilinear interp
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_trilinear():
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_mat.mat'),
-        '-singlematrix',
-        '-interp',
-        'trilinear'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_trilinear()
diff --git a/unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsInputs b/unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsInputs
deleted file mode 100644
index 7782318..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsInputs
+++ /dev/null
@@ -1 +0,0 @@
-unit_tests/applyxfm4D
diff --git a/unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsRun b/unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsRun
deleted file mode 100755
index 1679e82..0000000
--- a/unit_tests/applyxfm4D/applyxfm4D_userprefix/feedsRun
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env fslpython
-"""
-test applyxfm4D matfile directory option with user prefix 
-"""
-from subprocess import run, PIPE
-from os.path import join
-from tempfile import mkdtemp
-import os
-import sys
-
-OUTDIR = sys.argv[1]
-INDIR = sys.argv[2]
-FSLDIR = os.environ.get('FSLDIR')
-FSLBIN = join(FSLDIR, 'bin')
-print(INDIR)
-def test_applyxfm4D_userprefix():
-    # use trilinear interp for speed
-    cmd = [
-        join(FSLBIN, 'applyxfm4D'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_in.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'applyxfm4D_ref.nii.gz'),
-        join(OUTDIR, 'applyxfm4D_out.nii.gz'),
-        join(INDIR, 'unit_tests', 'applyxfm4D', 'matfiles_user_prefix'),
-        '-interp',
-        'trilinear',
-        '-userprefix',
-        'myprefix_'
-    ]
-    run_result = run(cmd, stdout=PIPE, check=True)
-    stdout_string = run_result.stdout.decode('utf-8')
-    # check that the files were written to disk
-    # the brain extracted input should exist
-    assert os.path.isfile(join(OUTDIR, 'applyxfm4D_out.nii.gz')) == True
-
-test_applyxfm4D_userprefix()
diff --git a/unit_tests/applyxfm4D/feedsRun.fail b/unit_tests/applyxfm4D/feedsRun.fail
new file mode 100755
index 0000000..b3b7ba1
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.fail
@@ -0,0 +1,21 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D correct failure
+"""
+import sys
+from subprocess import run, CalledProcessError
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'applyxfm4D_mat.mat']
+try:
+    run(cmd, check=True)
+    assert False
+except CalledProcessError as e:
+    print("test_applyxfm4D correctly failed. This is good!")
+    assert e.returncode != 0
diff --git a/unit_tests/applyxfm4D/feedsRun.fourdigit b/unit_tests/applyxfm4D/feedsRun.fourdigit
new file mode 100755
index 0000000..38aa1e3
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.fourdigit
@@ -0,0 +1,19 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D matfile directory option with 4 digit numbers in filenames
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'matfiles_four_digit',
+    '-interp',
+    'trilinear',
+    '-fourdigit']
+run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/feedsRun.nn b/unit_tests/applyxfm4D/feedsRun.nn
new file mode 100755
index 0000000..ceb1cb1
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.nn
@@ -0,0 +1,19 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D nn interp
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'applyxfm4D_mat.mat',
+    '-singlematrix',
+    '-interp',
+    'nn']
+run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/feedsRun.sinc b/unit_tests/applyxfm4D/feedsRun.sinc
new file mode 100755
index 0000000..0507d82
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.sinc
@@ -0,0 +1,19 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D sinc interp
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'applyxfm4D_mat.mat',
+    '-singlematrix',
+    '-interp',
+    'sinc']
+run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/feedsRun.singlematrix b/unit_tests/applyxfm4D/feedsRun.singlematrix
new file mode 100755
index 0000000..729b7c2
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.singlematrix
@@ -0,0 +1,19 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D single matrix option
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'applyxfm4D_mat.mat',
+    '-singlematrix',
+    '-interp',
+    'nn']
+run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/feedsRun.spline b/unit_tests/applyxfm4D/feedsRun.spline
new file mode 100755
index 0000000..fd43e22
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.spline
@@ -0,0 +1,19 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D spline interp
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'applyxfm4D_mat.mat',
+    '-singlematrix',
+    '-interp',
+    'spline']
+run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/feedsRun.transdir b/unit_tests/applyxfm4D/feedsRun.transdir
new file mode 100755
index 0000000..d6ee3e8
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.transdir
@@ -0,0 +1,18 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D matfile directory option
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'matfiles_five_digit',
+    '-interp',
+    'trilinear']
+run_result = run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/feedsRun.trilinear b/unit_tests/applyxfm4D/feedsRun.trilinear
new file mode 100755
index 0000000..615dff3
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.trilinear
@@ -0,0 +1,19 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D trilinear interp
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'applyxfm4D_mat.mat',
+    '-singlematrix',
+    '-interp',
+    'trilinear']
+run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/feedsRun.userprefix b/unit_tests/applyxfm4D/feedsRun.userprefix
new file mode 100755
index 0000000..32be3f1
--- /dev/null
+++ b/unit_tests/applyxfm4D/feedsRun.userprefix
@@ -0,0 +1,20 @@
+#!/usr/bin/env fslpython
+"""
+test applyxfm4D matfile directory option with user prefix
+"""
+import sys
+from subprocess import run
+from os.path import join
+
+OUTDIR = sys.argv[1]
+cmd = [
+    'applyxfm4D',
+    'applyxfm4D_in.nii.gz',
+    'applyxfm4D_ref.nii.gz',
+    join(OUTDIR, 'applyxfm4D_out.nii.gz'),
+    'matfiles_user_prefix',
+    '-interp',
+    'trilinear',
+    '-userprefix',
+    'myprefix_']
+run_result = run(cmd, check=True)
diff --git a/unit_tests/applyxfm4D/applyxfm4D_singlematrix/.DS_Store b/unit_tests/applyxfm4D/matfiles_five_digit/.DS_Store
similarity index 100%
rename from unit_tests/applyxfm4D/applyxfm4D_singlematrix/.DS_Store
rename to unit_tests/applyxfm4D/matfiles_five_digit/.DS_Store
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00000 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00000
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00000
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00001 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00001
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00001
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00002 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00002
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00002
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00003 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00003
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00003
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00004 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00004
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00004
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00005 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00005
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00005
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00006 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00006
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00006
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00007 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00007
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00007
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00008 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00008
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00008
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00009 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00009
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00009
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00010 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00010
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00010
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00011 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00011
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00011
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00012 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00012
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00012
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00013 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00013
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00013
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00014 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00014
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00014
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00015 b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00015
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_five_digit/MAT_00015
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/.DS_Store b/unit_tests/applyxfm4D/matfiles_four_digit/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6
GIT binary patch
literal 6148
zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3
zem<@ulZcFPQ@L2!n>{z**<q8>++&mCkOWA81W14cNZ<zv;LbK1Poaz?KmsK2CSc!(
z0ynLxE!0092;Krf2c+FF_Fe*7ECH>lEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ
zLs35+`xjp>T0<F0fCPF1$Cyrb|F7^5{eNG?83~ZUUlGt@xh*qZDeu<Z%US-OSsOPv
j)R!Z4KLME7ReXlK;d!wEw5GODWMKRea10D2@KpjYNUI8I

literal 0
HcmV?d00001

diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0000 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0000
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0000
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0001 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0001
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0001
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0002 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0002
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0002
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0003 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0003
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0003
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0004 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0004
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0004
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0005 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0005
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0005
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0006 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0006
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0006
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0007 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0007
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0007
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0008 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0008
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0008
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0009 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0009
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0009
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0010 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0010
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0010
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0011 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0011
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0011
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0012 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0012
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0012
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0013 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0013
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0013
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0014 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0014
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0014
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0015 b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0015
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_four_digit/MAT_0015
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/.DS_Store b/unit_tests/applyxfm4D/matfiles_user_prefix/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6
GIT binary patch
literal 6148
zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3
zem<@ulZcFPQ@L2!n>{z**<q8>++&mCkOWA81W14cNZ<zv;LbK1Poaz?KmsK2CSc!(
z0ynLxE!0092;Krf2c+FF_Fe*7ECH>lEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ
zLs35+`xjp>T0<F0fCPF1$Cyrb|F7^5{eNG?83~ZUUlGt@xh*qZDeu<Z%US-OSsOPv
j)R!Z4KLME7ReXlK;d!wEw5GODWMKRea10D2@KpjYNUI8I

literal 0
HcmV?d00001

diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0000 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0000
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0000
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0001 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0001
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0001
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0002 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0002
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0002
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0003 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0003
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0003
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0004 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0004
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0004
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0005 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0005
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0005
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0006 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0006
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0006
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0007 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0007
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0007
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0008 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0008
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0008
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0009 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0009
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0009
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0010 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0010
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0010
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0011 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0011
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0011
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0012 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0012
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0012
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0013 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0013
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0013
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0014 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0014
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0014
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
diff --git a/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0015 b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0015
new file mode 100644
index 0000000..8e01b80
--- /dev/null
+++ b/unit_tests/applyxfm4D/matfiles_user_prefix/myprefix_0015
@@ -0,0 +1,4 @@
+1.0000000000 0.0000000000 0.0000000000 -0.3750000000
+0.0000000000 1.0000000000 0.0000000000 0.8958333450
+0.0000000000 0.0000000000 1.0000000000 2.0000000000
+0.0000000000 0.0000000000 0.0000000000 1.0000000000
-- 
GitLab