Weighted mean, tests