fix SELF_SIGNED_CERT_IN_CHAIN test case on node 0.8 and 0.6