Move testability loading code to the QGuiApplication
https://codereview.qt-project.org/c/qt/qtbase/+/299476