Added test for mean and variances.