move DaoFactory.setFactory to main/before test