A TCP test server and a collection of helper functions for XMPP client tests.