Testing kd-tree.