fixing GetNthClosestNode test

Replaces NthElementSortFromTarget with PartialSortFromTarget