Add HooksTest.