Pregnancy tests detect a hormone called hCG (human chorionic gonadotrophin) produced by the chorion, the outer membrane around an embryo.
Menopause tests detect a hormone called FSH (follicle stimulating hormone) produced by the pituitary gland in response to absent feedback from declining ovarian function.