Remember when Olympic athletes got in trouble if they were biologically male competing in women's sports? Some had an issue with a trait that caused them to be sterile but have female development. I think I also recall testing to determine if women were taking (male?) hormones. Remember the jokes about E. German women and such?
https://thehighwire.com/watch/