add test for removing/adding field into an object and update index