Add a test for indices module