The male sex gland which produces testosterone and sperm.