TST: add tests for Mahalanobis routine