Improve test coverage of sql driver