added tests to visualize covariance matrix