testing the update hook