Fixed log path, CA cert when statement and added test stunnel_ca_content.