Fix mysql unit tests for queries with parameters