test for hook service with path