adds utf 8 encoding
stops test from raising argument error
spec for raising argument error if client not valid
adds vaild_client? method