MQL query classes and test