[OPTIQ-318] Add unit test for SqlRun

SqlRun prints errors inline, as opposed to crapping out.