Added sql test.