fixed a bug in test_client.cc