Adds debug info to test hooks
Allow multiple hooks for one endpoint.
Fixes sigint graceful shutdown