added tests for hook related exceptions