Kinetic theory of gelation: Numerical simulation and comparison with analytical results