Fix TestHookContext