add unit test of transport and server