add test for queryrecursive