added one more test case for positional variable in flwor clause
diff --git a/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.1.ddl.aql b/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.1.ddl.aql
new file mode 100644
index 0000000..336cb49
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.1.ddl.aql
@@ -0,0 +1,25 @@
+/*
+ * Description      :  Test for clause of the position variable in FLWOR expression using tpch
+ * Expected Result  :  Success
+ * Date             :  07/18/2013
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+
+use dataverse test;
+
+create type OrderType as closed {
+  o_orderkey: int32, 
+  o_custkey: int32, 
+  o_orderstatus: string, 
+  o_totalprice: double, 
+  o_orderdate: string, 
+  o_orderpriority: string,
+  o_clerk: string, 
+  o_shippriority: int32, 
+  o_comment: string
+}
+
+create dataset Orders(OrderType)
+  primary key o_orderkey;
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.2.update.aql b/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.2.update.aql
new file mode 100644
index 0000000..8509181
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.2.update.aql
@@ -0,0 +1,11 @@
+/*
+ * Description      :  Test for clause of the position variable in FLWOR expression using tpch dataset
+ * Expected Result  :  Success
+ * Date             :  07/18/2013
+ */
+ 
+use dataverse test;
+
+load dataset Orders 
+using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
+(("path"="nc1://data/tpch0.001/orders-part1.tbl,nc2://data/tpch0.001/orders-part2.tbl"),("format"="delimited-text"),("delimiter"="|")) pre-sorted;
diff --git a/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.3.query.aql b/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.3.query.aql
new file mode 100644
index 0000000..54a5098
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/flwor/at05/at05.3.query.aql
@@ -0,0 +1,20 @@
+/*
+ * Description      :  Test for clause of the position variable in FLWOR expression using tpch
+ * Expected Result  :  Success
+ * Date             :  07/18/2013
+ */
+
+use dataverse test;
+
+for $x in dataset('Orders')
+where $x.o_custkey < 4
+group by $uid := $x.o_custkey with $x
+order by $uid
+let $xx :=
+ for $y at $i in (for $xxx in $x order by $xxx.o_orderkey return $xxx)
+ return {
+   "uid": $uid,
+   "seq": $i,
+   "item": $y.o_orderkey
+ }
+for $si in $xx return $si
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/flwor/at05/at05.1.adm b/asterix-app/src/test/resources/runtimets/results/flwor/at05/at05.1.adm
new file mode 100644
index 0000000..7279a19
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/flwor/at05/at05.1.adm
@@ -0,0 +1,14 @@
+{ "uid": 1, "seq": 1, "item": 102 }
+{ "uid": 1, "seq": 2, "item": 164 }
+{ "uid": 1, "seq": 3, "item": 320 }
+{ "uid": 1, "seq": 4, "item": 739 }
+{ "uid": 1, "seq": 5, "item": 1602 }
+{ "uid": 2, "seq": 1, "item": 353 }
+{ "uid": 2, "seq": 2, "item": 896 }
+{ "uid": 2, "seq": 3, "item": 994 }
+{ "uid": 2, "seq": 4, "item": 1504 }
+{ "uid": 2, "seq": 5, "item": 1603 }
+{ "uid": 2, "seq": 6, "item": 1669 }
+{ "uid": 2, "seq": 7, "item": 4704 }
+{ "uid": 2, "seq": 8, "item": 5507 }
+{ "uid": 2, "seq": 9, "item": 5893 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/testsuite.xml b/asterix-app/src/test/resources/runtimets/testsuite.xml
index 35911e3..4b47b70 100644
--- a/asterix-app/src/test/resources/runtimets/testsuite.xml
+++ b/asterix-app/src/test/resources/runtimets/testsuite.xml
@@ -34,6 +34,11 @@
         <output-dir compare="Text">at04</output-dir>
       </compilation-unit>
     </test-case>
+    <test-case FilePath="flwor">
+      <compilation-unit name="at05">
+        <output-dir compare="Text">at05</output-dir>
+      </compilation-unit>
+    </test-case>
   </test-group>
   <test-group name="aggregate">
     <test-case FilePath="aggregate">