Tests with euclidean distances