reflactore the webhook test