test on email hook