test edit of index