Added unit test for hook schema