avoid import of scipy. fixed a logic errors in use of assert_equal(all(..), 0)
avoid 'import all' in unit tests