DOC: specified the type for pos_label in metrics
TST: added ComparableObject to be used as a general object for testing
TST: refactored test for int, str and added test for the general ComparableObject