Add test for sql_formattable