Fix issue 786 by rewriting some tests
Fix issue 786 by rewriting some tests

Changed some assertequal statements to some numpy.testing.assert_almost_equal
statements. This makes it such that the tests do not fail, which they sometimes
do othewise.

pgmpy/pgmpy,jhonatanoliveira/pgmpy,khalibartan/pgmpy,sandeepkrjha/pgmpy,ankurankan/pgmpy,sandeepkrjha/pgmpy,jhonatanoliveira/pgmpy,pgmpy/pgmpy,ankurankan/pgmpy,khalibartan/pgmpy