minor changes in BayesianModel.py, tests for is_active_trail and active_trail_nodes

Please do not merge this yet, I am still working on test_Factor.py
I sent the pull request just to ensure that I was the only one working on this.
Please suggest any do's or don'ts while writing these tests.
BTW, I am jaspreet on IRC