Tests for nearest-neighbor and farthest neighbor. (Both fail)