QString::fromLatin1(QByteArray) includes the null characters from the byte array which makes BigInteger and Certificate tests fail since QCOMPARE distinguishes between QString("123") and QString("123\u0000").