fixed memory leaks in unit-test LogDetEstimator