fix testing client
add Connection class. #1 fixed.