ENH: Added input checks in confusion_matrix

Also added confusion_matrix to metric tests