Add test coverage for MySQL query classes