Add test for IdentityDaoFactory.