adding unit test for updating a task