add x1client unit test code