k-d tree test added.