fixing buf length in test client