modified ClientTest.cs