Fix test for all dbs