Fix table_spec tests
Fix sql_spec tests; add adapter helper method