tcpserver2: another test for gateway logic