The issue with the debug flag is  that it prints out the entire query tree for every query making test results hard to read. Perhaps it would be better to replace this with a test flag (--debug for example) ?