Correct NearestTest and add one more to test multidirectional search

Correction to testNearest and addition of a similar test to test multi-directional search.