[PATCH] tests: Replace deprecated ASN1 code