Add tests for raw sql tbls.
Partial fix for #91