Add hooks stub.
Fix test.