Fixed a client unittest