Fix index view configuration and add test
This refs affinitic #5862