Add tests for indices update