Added test for CQL AND (sentence distance 0) including retrieve json query and rewrite it to spanquery.
diff --git a/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java b/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java
index 2e10fc7..7263d01 100644
--- a/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java
+++ b/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java
@@ -223,6 +223,12 @@
         sq = sqwi.toQuery();
         kr = ki.search(sq, (short) 10);
     	
+        assertEquals(3, kr.getTotalResults());
+        assertEquals(14, kr.getMatch(0).startPos);
+        assertEquals(19, kr.getMatch(0).endPos);
+        assertEquals(30, kr.getMatch(1).startPos);
+        assertEquals(33, kr.getMatch(1).endPos);
+        
       /*  for (KorapMatch km : kr.getMatches()){		
         	System.out.println(km.getStartPos() +","+km.getEndPos()+" "
         			+km.getSnippetBrackets());