add test for HasMany relationship