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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
