test_hooks: document hooks injection