add test case of indexed updates and overwrite update