which of the following is an endocrine function of the testes