Merge "Adding test to check that ASN.1 lengths are properly encoded"