Adding unit tests and updating API urls

Fixes API urls and adds basic unit tests for the current webhooks.