sql tests.