testcases for QueryEach
solved ticket https://issues.jboss.org/browse/RAILO-2986
solved ticket https://issues.jboss.org/browse/RAILO-2988