diff --git a/python/plugins/processing/tests/testdata/expected/valid.gfs b/python/plugins/processing/tests/testdata/expected/valid.gfs
new file mode 100644
index 00000000000..2f534672d46
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/expected/valid.gfs
@@ -0,0 +1,16 @@
+
+
+ valid
+ valid
+
+ 6
+ EPSG:4326
+
+ 1
+ 122.17632
+ 122.19038
+ -8.60636
+ -8.59579
+
+
+
diff --git a/python/plugins/processing/tests/testdata/expected/valid.gml b/python/plugins/processing/tests/testdata/expected/valid.gml
new file mode 100644
index 00000000000..ac8d2cad044
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/expected/valid.gml
@@ -0,0 +1,19 @@
+
+
+
+
+ 122.1763203897661-8.606355050987483
+ 122.1903768142314-8.595792419886385
+
+
+
+
+
+ 122.186446688291,-8.60019485107161 122.188508041037,-8.60212999854704 122.186395514816,-8.60635505098748 122.183795482545,-8.60261750459786 122.186446688291,-8.60019485107161122.176320389766,-8.60123623745388 122.179976685147,-8.59774244408966 122.183895970553,-8.59830234200473 122.176320389766,-8.60123623745388122.186446688291,-8.60019485107161 122.184526741622,-8.59839245215742 122.183895970553,-8.59830234200473 122.190376814231,-8.59579241988638 122.188508041037,-8.59831120114895 122.186446688291,-8.60019485107161
+
+
+
diff --git a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
index a97c5443a49..9c2d957da6b 100644
--- a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
+++ b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
@@ -2300,6 +2300,17 @@ tests:
name: expected/zonal_statistics.gml
type: vector
+ - algorithm: qgis:fixgeometries
+ name: Fix geometries
+ params:
+ INPUT:
+ name: invalidgeometries.gml
+ type: vector
+ results:
+ OUTPUT:
+ name: expected/valid.gml
+ type: vector
+
- algorithm: qgis:polygonize
name: Polygonize
params: