Added test for updating tasks