dbwrapper: Added test for transform_sql().