fix the test in moments