Fixed tests. Added equals() and hashCode() to DaoObjects like News, Photo...