In Qt 6, container.count() returns a qsizetype, on the other hand expectedCount is int. That type difference makes QTEST panic.