tests: coverage for db