diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 9a2500bac..e02c36cc5 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -38,4 +38,5 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
test534 test535 test281 test537 test282 test283 test284 test538 test285 \
test286 test307 test308 test287 test400 test288 test600 test601 test602 \
- test603 test401 test402 test290 test291 test292 test293 test403
+ test603 test401 test402 test290 test291 test292 test293 test403 test404 \
+ test405
diff --git a/tests/data/test404 b/tests/data/test404
new file mode 100644
index 000000000..97666302b
--- /dev/null
+++ b/tests/data/test404
@@ -0,0 +1,31 @@
+
+
+
+FTPS
+FAILURE
+
+
+
+# Client-side
+
+
+SSL
+
+
+ftps
+
+
+FTPS with invalid cacert
+
+
+--ftp-ssl-control --cacert moooo ftps://%HOSTIP:%FTPSPORT/
+
+
+
+# Verify data after the test has been "shot"
+
+
+77
+
+
+
diff --git a/tests/data/test405 b/tests/data/test405
new file mode 100644
index 000000000..8560285ac
--- /dev/null
+++ b/tests/data/test405
@@ -0,0 +1,31 @@
+
+
+
+FTPS
+FAILURE
+
+
+
+# Client-side
+
+
+SSL
+
+
+ftp
+
+
+FTPS operation to FTP port
+
+
+-k ftps://%HOSTIP:%FTPPORT/path/to/file/405
+
+
+
+# Verify data after the test has been "shot"
+
+
+35
+
+
+