fixing update test on index.add