Add get_hook_by_name + test