diff --git a/Makefile.am b/Makefile.am
index 1454233..b190424 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,6 +39,7 @@ dist_man8_MANS =
 testdir = @TESTBINDIR@
 test_PROGRAMS =
 test_SCRIPTS =
+test_DATA =
 
 TESTS =
 EXTRA_DIST = COPYING CHANGELOG.md README.txt
diff --git a/tests/ubifs_repair-tests/Makemodule.am b/tests/ubifs_repair-tests/Makemodule.am
index 323102b..6070b0c 100644
--- a/tests/ubifs_repair-tests/Makemodule.am
+++ b/tests/ubifs_repair-tests/Makemodule.am
@@ -6,3 +6,45 @@ test_SCRIPTS += \
 	tests/ubifs_repair-tests/tests/cycle_corrupted_repair_fault_inject.sh \
 	tests/ubifs_repair-tests/tests/cycle_powercut_mount_repair.sh \
 	tests/ubifs_repair-tests/tests/random_corrupted_repair.sh
+
+test_DATA += \
+	tests/ubifs_repair-tests/images/good.gz \
+	tests/ubifs_repair-tests/images/sb_fanout.gz \
+	tests/ubifs_repair-tests/images/sb_fmt_version.gz \
+	tests/ubifs_repair-tests/images/sb_leb_size.gz \
+	tests/ubifs_repair-tests/images/sb_log_lebs.gz \
+	tests/ubifs_repair-tests/images/sb_min_io_size.gz \
+	tests/ubifs_repair-tests/images/master_highest_inum.gz \
+	tests/ubifs_repair-tests/images/master_lpt.gz \
+	tests/ubifs_repair-tests/images/master_tnc.gz \
+	tests/ubifs_repair-tests/images/master_total_dead.gz \
+	tests/ubifs_repair-tests/images/master_total_dirty.gz \
+	tests/ubifs_repair-tests/images/master_total_free.gz \
+	tests/ubifs_repair-tests/images/log.gz \
+	tests/ubifs_repair-tests/images/lpt_dirty.gz \
+	tests/ubifs_repair-tests/images/lpt_flags.gz \
+	tests/ubifs_repair-tests/images/lpt_free.gz \
+	tests/ubifs_repair-tests/images/lpt_pos.gz \
+	tests/ubifs_repair-tests/images/tnc_lv0_key.gz \
+	tests/ubifs_repair-tests/images/tnc_lv0_len.gz \
+	tests/ubifs_repair-tests/images/tnc_lv0_pos.gz \
+	tests/ubifs_repair-tests/images/tnc_noleaf_key.gz \
+	tests/ubifs_repair-tests/images/tnc_noleaf_len.gz \
+	tests/ubifs_repair-tests/images/tnc_noleaf_pos.gz \
+	tests/ubifs_repair-tests/images/inode_data.gz \
+	tests/ubifs_repair-tests/images/inode_mode.gz \
+	tests/ubifs_repair-tests/images/inode_nlink.gz \
+	tests/ubifs_repair-tests/images/inode_size.gz \
+	tests/ubifs_repair-tests/images/inode_xcnt.gz \
+	tests/ubifs_repair-tests/images/soft_link_data_len.gz \
+	tests/ubifs_repair-tests/images/dentry_key.gz \
+	tests/ubifs_repair-tests/images/dentry_nlen.gz \
+	tests/ubifs_repair-tests/images/dentry_type.gz \
+	tests/ubifs_repair-tests/images/xinode_flags.gz \
+	tests/ubifs_repair-tests/images/xinode_key.gz \
+	tests/ubifs_repair-tests/images/xinode_mode.gz \
+	tests/ubifs_repair-tests/images/xentry_key.gz \
+	tests/ubifs_repair-tests/images/xentry_nlen.gz \
+	tests/ubifs_repair-tests/images/xentry_type.gz \
+	tests/ubifs_repair-tests/images/dir_lost.gz \
+	tests/ubifs_repair-tests/images/root_dir.gz
diff --git a/tests/ubifs_repair-tests/images/dentry_key.gz b/tests/ubifs_repair-tests/images/dentry_key.gz
new file mode 100644
index 0000000000000000000000000000000000000000..aceaae006b352c35e4892b3a5f8263bbfcb29e49
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/dentry_nlen.gz b/tests/ubifs_repair-tests/images/dentry_nlen.gz
new file mode 100644
index 0000000000000000000000000000000000000000..9acd3ecc4e1c1416a91ab0896331f33e6fbab2c6
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/dentry_type.gz b/tests/ubifs_repair-tests/images/dentry_type.gz
new file mode 100644
index 0000000000000000000000000000000000000000..883d11ac10e27dc24f39038fb1739c6af0b214b1
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/dir_lost.gz b/tests/ubifs_repair-tests/images/dir_lost.gz
new file mode 100644
index 0000000000000000000000000000000000000000..70c4e8d22b364be1a9b9bc8c7105dc4196bed4d5
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/good.gz b/tests/ubifs_repair-tests/images/good.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0611528fce68959068509fda7ccf420e757652ae
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/inode_data.gz b/tests/ubifs_repair-tests/images/inode_data.gz
new file mode 100644
index 0000000000000000000000000000000000000000..5d3e5ad3b617a5d3f9434f09c9c6165014753441
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/inode_mode.gz b/tests/ubifs_repair-tests/images/inode_mode.gz
new file mode 100644
index 0000000000000000000000000000000000000000..e82fed94e6a84f8f8149d872e6fad8704b1cdf5c
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/inode_nlink.gz b/tests/ubifs_repair-tests/images/inode_nlink.gz
new file mode 100644
index 0000000000000000000000000000000000000000..64d20e8c1af03976b021cffcad1e58542875d5b5
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/inode_size.gz b/tests/ubifs_repair-tests/images/inode_size.gz
new file mode 100644
index 0000000000000000000000000000000000000000..ecd7f78e0c9e5ffe18905a903acd50bd5d8d42f0
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/inode_xcnt.gz b/tests/ubifs_repair-tests/images/inode_xcnt.gz
new file mode 100644
index 0000000000000000000000000000000000000000..3b31f03866104dab73ba1c97b1e7065734fb35ea
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/log.gz b/tests/ubifs_repair-tests/images/log.gz
new file mode 100644
index 0000000000000000000000000000000000000000..6e6c8a8338af294b7c4575eff355e1f871f41406
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/lpt_dirty.gz b/tests/ubifs_repair-tests/images/lpt_dirty.gz
new file mode 100644
index 0000000000000000000000000000000000000000..1d020b718953ef13ca800b503b17d154c2e1a237
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/lpt_flags.gz b/tests/ubifs_repair-tests/images/lpt_flags.gz
new file mode 100644
index 0000000000000000000000000000000000000000..546e9326b5039a65429f5fa45e8b1f0e3efdbfdc
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/lpt_free.gz b/tests/ubifs_repair-tests/images/lpt_free.gz
new file mode 100644
index 0000000000000000000000000000000000000000..31c46a0f6277f96a0b04c362c1fb84442333f5e7
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/lpt_pos.gz b/tests/ubifs_repair-tests/images/lpt_pos.gz
new file mode 100644
index 0000000000000000000000000000000000000000..39c2fb10902958e2d6581c2dedd3dd70b89d3fe2
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/master_highest_inum.gz b/tests/ubifs_repair-tests/images/master_highest_inum.gz
new file mode 100644
index 0000000000000000000000000000000000000000..8912bbe3adc56135a16ee4a26718f8c53c7cb870
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/master_lpt.gz b/tests/ubifs_repair-tests/images/master_lpt.gz
new file mode 100644
index 0000000000000000000000000000000000000000..156a2741d2b352933e7eb5d6f4b49d03aaf45ba8
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/master_tnc.gz b/tests/ubifs_repair-tests/images/master_tnc.gz
new file mode 100644
index 0000000000000000000000000000000000000000..f62ef22feaf880ee83d795d29a9b7d3fca61506a
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/master_total_dead.gz b/tests/ubifs_repair-tests/images/master_total_dead.gz
new file mode 100644
index 0000000000000000000000000000000000000000..90a2ba266562d58b7e29f52d907095d3c2b2cb43
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/master_total_dirty.gz b/tests/ubifs_repair-tests/images/master_total_dirty.gz
new file mode 100644
index 0000000000000000000000000000000000000000..2286669f87a908dbd409fdb988ae2ddceb6ad03a
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/master_total_free.gz b/tests/ubifs_repair-tests/images/master_total_free.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0394a76baa38bf36eb64df3ff4b725977208d7fe
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/root_dir.gz b/tests/ubifs_repair-tests/images/root_dir.gz
new file mode 100644
index 0000000000000000000000000000000000000000..ed846363fb4229ce01951c8bc60c067da0a52310
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/sb_fanout.gz b/tests/ubifs_repair-tests/images/sb_fanout.gz
new file mode 100644
index 0000000000000000000000000000000000000000..0b267f64b3555c689e2ba06baf23970d089f96ff
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/sb_fmt_version.gz b/tests/ubifs_repair-tests/images/sb_fmt_version.gz
new file mode 100644
index 0000000000000000000000000000000000000000..31070a12e2f63f9c0f90ec8bd0790783e18f0ba3
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/sb_leb_size.gz b/tests/ubifs_repair-tests/images/sb_leb_size.gz
new file mode 100644
index 0000000000000000000000000000000000000000..9688ccde7201ed5eebddce87d1d21490c9a9ce1e
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/sb_log_lebs.gz b/tests/ubifs_repair-tests/images/sb_log_lebs.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4f74796ef32f96d688bb3b8dbb988682a1122fe7
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/sb_min_io_size.gz b/tests/ubifs_repair-tests/images/sb_min_io_size.gz
new file mode 100644
index 0000000000000000000000000000000000000000..8871841ebec45687923045e93fbec1e1fe79fef7
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/soft_link_data_len.gz b/tests/ubifs_repair-tests/images/soft_link_data_len.gz
new file mode 100644
index 0000000000000000000000000000000000000000..4fa20cf01fcaa5f0145bf4b2639d89ca0b9184ce
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/tnc_lv0_key.gz b/tests/ubifs_repair-tests/images/tnc_lv0_key.gz
new file mode 100644
index 0000000000000000000000000000000000000000..9a45f26074ea396e032169b9d64bce3e0199f650
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/tnc_lv0_len.gz b/tests/ubifs_repair-tests/images/tnc_lv0_len.gz
new file mode 100644
index 0000000000000000000000000000000000000000..1cf0d794741448ae77eab6e047db3d3e315408d5
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/tnc_lv0_pos.gz b/tests/ubifs_repair-tests/images/tnc_lv0_pos.gz
new file mode 100644
index 0000000000000000000000000000000000000000..9ba36f97775edd4660122fd6d2b25a3849738df5
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/tnc_noleaf_key.gz b/tests/ubifs_repair-tests/images/tnc_noleaf_key.gz
new file mode 100644
index 0000000000000000000000000000000000000000..b9dcd3799a6b0f982c30a9c9d8da8011929c2154
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/tnc_noleaf_len.gz b/tests/ubifs_repair-tests/images/tnc_noleaf_len.gz
new file mode 100644
index 0000000000000000000000000000000000000000..e2c5a9a213891734c89d4042cdfe1a824b8b6071
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/tnc_noleaf_pos.gz b/tests/ubifs_repair-tests/images/tnc_noleaf_pos.gz
new file mode 100644
index 0000000000000000000000000000000000000000..60cbe7a71b18b647e1efeee448172853887de9ff
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/xentry_key.gz b/tests/ubifs_repair-tests/images/xentry_key.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d2ff24989fda6ee8b181dfa403403fac332cd19a
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/xentry_nlen.gz b/tests/ubifs_repair-tests/images/xentry_nlen.gz
new file mode 100644
index 0000000000000000000000000000000000000000..96215b7663446b9b1934f56a08fa5a765dfde49d
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/xentry_type.gz b/tests/ubifs_repair-tests/images/xentry_type.gz
new file mode 100644
index 0000000000000000000000000000000000000000..71ef8d9d66b102504bd02c76a271d1f8034ea24a
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/xinode_flags.gz b/tests/ubifs_repair-tests/images/xinode_flags.gz
new file mode 100644
index 0000000000000000000000000000000000000000..83e2a10e270f67698d7cb5c3d5c8971a0789d30c
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/xinode_key.gz b/tests/ubifs_repair-tests/images/xinode_key.gz
new file mode 100644
index 0000000000000000000000000000000000000000..ff0a04f0df22bc0817e3cca97b53824e3796ec19
GIT binary patch
diff --git a/tests/ubifs_repair-tests/images/xinode_mode.gz b/tests/ubifs_repair-tests/images/xinode_mode.gz
new file mode 100644
index 0000000000000000000000000000000000000000..c86f69c7e3a716864035d1763ae533079727b8b2
