sqliteAnalyzer: add tests, some code adjustments for easier gradle integration