added test for naive bayes classifier