testing if the update hook works correctly