testting send hook function into thread