Working on tests for the new kdtree implementation.