Added test for using different number of measurements in computation of covariance, writes results to file