Test which checks the error being raised by #unsupported in ToSql Visitor