Added tests
Merge branch 'dev' of https://github.com/PgmPy/PgmPy into dev