add echo server codes and test codes