For the web app, a crucial test is missing. The test would POST some json tot he hook and you would test if the hook reacted as required.