Make bgp_xmpp_basic_test more robust

Change-Id: I38570ba59a98acea7cbc6167bdc49181fa33c26c