Had to fix some package references, and uses backquote to splice
together the a decent deftest form without being overly verbose. Also
used clsql:sql instead of calling output-sql directly.
Currently fails by not preserving case when using a symbol like '|foo|
as the table name, we're getting "FOO" not "foo".