Update test_bgd.py

added rng functions