tcp: improve test