implement tests for in place and weighted covariance
impl weighted cov matrix and in place assignment