implemented covariance test