The linked essay[1] is worth reading. I had no idea that sex testing was so complicated - it explained to me a lot about why sex-testing for (usually) women's sport isn't as simple as I'd assumed.
Similar issues are discussed frequently in many forums. It's only you don't know what you don't know!
Edit: Ok. I exaggerated. But we really don't know.