kdtree sn_test update