polyDist test fixed.