test execute_hook