Add tests for updating an index