fixed bug in test client