update index and test