Added more tests to sqlite specific query-generator.
Merge branch 'master' into milestones/2.0.0