some corrections in test_client.py

I did some corrections in client tests so less of them fail.