correct test procedure of calculating covMatrix