Flexi Says: The testes also function as endocrine glands that produce the male hormone testosterone. Testosterone is produced by cells that are located between sperm-bearing tubules. The glands are not in direct contact with sperm, but the testosterone they produce reaches sperm through the bloodstream. Testosterone is essential for the development of sperm.