Fixing tests and update_item API