Extracted pin_info_from_pad and wrote tests