added tets for kdtree functions