tests: fixed a test case when MariaDB is used.