fix euclidean distance test