Implement the some unit tests without listenandserve