added tests for kd-tree