Adding unit tests for the webhook