GathererDAOImpl, VisitDAOImplTest

Small fixes in test for VisitDAOImpl and added one condition in
GathererDAOImpl