test HasMany relation.
fix intialized problem in each relation.
return each relation from dao; and relate accepts target entities.