Test code for libxmpp (XMPP protocol)