HHH-8090: Created testing framework for SQL output and implementation in core