Make bgp_xmpp_basic_test more robust

Change-Id: I2b4491ce6e4fcdb8854fc0c3f14c53354caa8aa4