refactory the construction of the x1client

refactory the construction of the test_x1client