Another question: If the absence or presence of testosterone determine gender identity, then what about the case of the trans guy with complete androgen insensitivity syndrome?
Though his cells couldn't respond to testosterone and he therefore developed female body parts, he still had a male gender identity that had been noticed since age 3.