In particular check this https://phauer.com/2018/best-practices-unit-testing-kotlin/ to see why the current set up in the DB test is bad, and how to avoid it.