diff --git a/Tests/feaLib/data/GSUB_2.fea b/Tests/feaLib/data/GSUB_2.fea
index 078cbec39..21db452b5 100644
--- a/Tests/feaLib/data/GSUB_2.fea
+++ b/Tests/feaLib/data/GSUB_2.fea
@@ -29,3 +29,7 @@ lookup l1 {
feature f5 {
sub @class' lookup l1 [i l];
} f5;
+
+feature f6 {
+ sub [f_i f_i]' j by [f f] [i i];
+} f6;
diff --git a/Tests/feaLib/data/GSUB_2.ttx b/Tests/feaLib/data/GSUB_2.ttx
index b2bd21bd7..fb87a0590 100644
--- a/Tests/feaLib/data/GSUB_2.ttx
+++ b/Tests/feaLib/data/GSUB_2.ttx
@@ -10,19 +10,20 @@
-
+
@@ -58,9 +59,16 @@
+
+
+
+
+
+
+
-
+
@@ -135,6 +143,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+