Make client test platform agnostic.

The test test_client_with_bad_host_logs_error was checking for
a string which is different on osx/linux. It now just matches
against the start of the string which is the same on both platforms.