diff --git a/python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gfs b/python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gfs
new file mode 100644
index 00000000000..076d497b096
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gfs
@@ -0,0 +1,31 @@
+
+
+ points_to_path_grouped
+ points_to_path_grouped
+
+ 2
+ EPSG:4326
+
+ 3
+ 0.00000
+ 8.00000
+ -5.00000
+ 3.00000
+
+
+ id2
+ id2
+ Integer
+
+
+ begin
+ begin
+ Integer
+
+
+ end
+ end
+ Integer
+
+
+
diff --git a/python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gml b/python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gml
new file mode 100644
index 00000000000..68ec6408c30
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/expected/points_to_path_grouped2.gml
@@ -0,0 +1,39 @@
+
+
+
+
+ 0-5
+ 83
+
+
+
+
+
+ 2,2 0,-5 8,-1 7,-1 0,-1
+ 0
+ 3
+ 9
+
+
+
+
+ 3,3 4,1
+ 1
+ 2
+ 5
+
+
+
+
+ 1,1 5,2
+ 2
+ 1
+ 4
+
+
+
+
diff --git a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
index 846d2c65b1f..83b6a0b3dd4 100644
--- a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
+++ b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
@@ -2260,7 +2260,9 @@ tests:
GROUP_FIELD: id2
results:
OUTPUT:
- name: expected/points_to_path_grouped.gml
+ name:
+ - expected/points_to_path_grouped.gml
+ - expected/points_to_path_grouped2.gml
type: vector
# - algorithm: qgis:joinattributestable