Fix queryservice tests for MariaDB.