test for finding the closest neighbor that isn't an exact match