Write some tests for the SQL query builder. Not finished.