Tested update logic