Add tests for hasManyThrough link with data

Signed-off-by: Clark Wang <clark.wangs@gmail.com>