Some testcases for db