Enhance the tests on bundle error message.

Hide the actual certificate ASN1 parsing errors and throw a
human readable one.