Reapply "remove <QtTest> which includes all of <QtCore> (scripted)" +
missing include as reported by CI.
I think that adding #include <...> was more optimum that reverting patch...