updating test and code for updating/editing list item