I would run this test only if we are testing MongooseIM. It is possible to use ejabberd_tests for ejabberd and ejabberd doesn't have this patch. I suggest skipping the test if we know that ejabberd is used as the server.