public interface to connect the server and accept a client
Add one more test case