Added Tests for hook