test client mode