The testes are discarded during surgery.  While most of the material from the genitals is reused, There is no function they could perform, as the analogus female part would be the ovaries and they can't be converted to produce eggs.