add a test for updating items through replace_items