Add dunderinit in tests/api
Move db tests into own subdir tests/db