add test of db