test posthook