Refactoring DAOImpl tests