tests: add test for service db