test update and callback