add robustness to test_rb_bd stochastic test