Expand some more on tests.
NN search now works ~98% of times on random generated numbers.