[test] Added db tests