Move hook testing stuff to Test::Qpsmtpd

This makes it more available to plugins outside of t/plugin_tests/