preparing code for client-server test