fix post hook error test