Modernize unittest example
backout 66e30c4870bb for breaking OSX (#13150)
Issue #17508: Handled out-of-order handler configuration correctly.
Issue #17425: Build against openssl 0.9.8y on Windows.