Fix tests with older versions of qt.