test service hook