Dao factory tests