fixed initialization of test client