fix sql tests