Distribution of Test Statistic for Euclidean Distance Matrices