Fix one of the unit tests on Qt5