Fix build of the test on Qt5