test edit index