diff --git a/python/plugins/processing/tests/models/filtertest.model3 b/python/plugins/processing/tests/models/filtertest.model3
index bc283bc2ed4..1f8924d4c16 100644
--- a/python/plugins/processing/tests/models/filtertest.model3
+++ b/python/plugins/processing/tests/models/filtertest.model3
@@ -1,102 +1,80 @@
-
+
-
-
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
-
+
+
-
-
-
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
+
+
+
+
diff --git a/python/plugins/processing/tests/testdata/expected/filter_points_big.gml b/python/plugins/processing/tests/testdata/expected/filter_points_big.gml
new file mode 100644
index 00000000000..8b7a0ed81e4
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/expected/filter_points_big.gml
@@ -0,0 +1,42 @@
+
+
+
+
+ 11
+ 53
+
+
+
+
+
+ 1,1
+ 1
+ 2
+
+
+
+
+ 3,3
+ 2
+ 1
+
+
+
+
+ 5,2
+ 4
+ 2
+
+
+
+
+ 4,1
+ 5
+ 1
+
+
+
diff --git a/python/plugins/processing/tests/testdata/expected/filter_points_small.gml b/python/plugins/processing/tests/testdata/expected/filter_points_small.gml
new file mode 100644
index 00000000000..1a9f934d95c
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/expected/filter_points_small.gml
@@ -0,0 +1,49 @@
+
+
+
+
+ 0-5
+ 82
+
+
+
+
+
+ 2,2
+ 3
+ 0
+
+
+
+
+ 0,-5
+ 6
+ 0
+
+
+
+
+ 8,-1
+ 7
+ 0
+
+
+
+
+ 7,-1
+ 8
+ 0
+
+
+
+
+ 0,-1
+ 9
+ 0
+
+
+
diff --git a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
index 56c94c859f3..ad2baaf81fa 100644
--- a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
+++ b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
@@ -5176,3 +5176,19 @@ tests:
OUTPUT:
name: expected/swap_xy.gml
type: vector
+
+ - algorithm: model:filtertest
+ name: Test (model:filtertest)
+ params:
+ layer:
+ name: points.gml
+ type: vector
+ results:
+ native:filter_1:OUTPUT_small:
+ name: expected/filter_points_small.gml
+ type: vector
+ native:filter_1:OUTPUT_big:
+ name: expected/filter_points_big.gml
+ type: vector
+
+# See ../README.md for a description of the file format