improve test coverage + related fixes
handle initial test db setup better