made client->server class and wrote failing tests