new sql tests