Add tests for mean, gmean, hmean and wmean