Evidence of testosterone supplementation improving cognitive performance is weak despite many studies.
Evidence of sleep associated with cognitive performance is extensive and well documented.
The (not that helpful in the moment) good news is that kids get older and will eventually sleep more and more independently.