added update task to service layer, with tests