fix and add test_multibayes