add db assertion
add debug
add tests. closes #14
disable logger in test env
refactor makefile, drop global component dep