rm test and modify index