Add test for index page grouping