Fix bug in db_dependent tests (wthdrawn)