added client and server test codeC