Testing distances