Added distributed test case for hooks