Add test case for HasOne populator