[irods/irods#1985] better handling of client and svr env in Xmsg unit test