Add X509::Client error handling & tests