add tests for webhooks
Merge pull request #310 from reviewninja/tests/webhooks

add tests for webhooks