Added some tests for SQL related tests.