Added test for db