Test for KDTree.node fix

If you merge this PR, the commit should wind up in your own PR over at scipy/scipy.