Try to fix mysql usage in tests.