Make bgp_xmpp_basic_test more robust

Change-Id: Ic12610883dd425ca4f7aa31684e3bb776c52af46