Test for add to index