Endocrine function of testes