testicles function in animals