refactor init tests, add dbconn