fixed test for grand_average