add test involving db access