test: add shortcuts to query test database
fix: fix LOG to log
tests: add tests