Fix regression in test index page by using shouldExpand