Added generation of the confusion matrix in test method
Also fixed the annoying/confusing classifier index issue.