x2 test added to naive bayes