Fix tests of QMimeDatabase.