fix bug in client test