This commit adds compliance tests to ensure that the generated output of signal-based queries matches our expectation. Note: collapsing query advance instructions is not implemented yet. PR Close #53978