ASN1: add test cases for latest changes