fix upgrade recipe + DaoTest bug