Simulations and measurements of the TTF phase-1 injector gun