test service hook at email function