fix test client bug