Bayes classifier unit test.