added test for db