Design of Testing Program for Gateway