TST: Fix test_weighted_moments is defined twice