removed all traces of mahalanobis_helper.R and implemented tests