Some changes in covariance calculation. Test for Estimator class is
added.