- on-add now detects JSON emitted by hooks for different tasks.
- Hooks now verify the expected number of JSON lines emitted by hook scripts.
- Added hook tests for on-add.