Change ClassifierFactory and added test-spam filter