Added unit test for updating a list