tests in place for distance minimization