Gateway testing