test for tcp listener and go routine