[TIMOB-11869] Finished unit test for hooks.