add client and server test code