add test for tcp server