supporting foundry and layer specification in spans
diff --git a/src/test/java/PoliqarpPlusTreeTest.java b/src/test/java/PoliqarpPlusTreeTest.java
index ad293eb..bb97c45 100644
--- a/src/test/java/PoliqarpPlusTreeTest.java
+++ b/src/test/java/PoliqarpPlusTreeTest.java
@@ -81,6 +81,7 @@
 	
 	@Test
 	public void testElements() throws QueryException {
+		String query;
 		// <s>
 		String elem1 = "{@type=korap:span, key=s}";
 		assertTrue(equalsQueryContent(elem1, "<s>"));
@@ -88,6 +89,20 @@
 		// <vp>
 		String elem2 = "{@type=korap:span, key=vp}";
 		assertTrue(equalsQueryContent(elem2, "<vp>"));
+		
+		// <cnx/c=vp>
+		query = "<c=vp>";
+		String span3 = "{@type=korap:span, layer=c, key=vp}";
+		ppt = new PoliqarpPlusTree(query);
+		map = ppt.getRequestMap().get("query").toString();
+		assertEquals(span3.replaceAll(" ", ""), map.replaceAll(" ", ""));
+		
+		// <cnx/c=vp>
+		query = "<cnx/c=vp>";
+		String span4 = "{@type=korap:span, foundry=cnx, layer=c, key=vp}";
+		ppt = new PoliqarpPlusTree(query);
+		map = ppt.getRequestMap().get("query").toString();
+		assertEquals(span4.replaceAll(" ", ""), map.replaceAll(" ", ""));
 	}
 	
 	@Test