Refactored xmpp_server_tests to avoid duplicate code