Update test case gen_dbinfo and genpolicy