Add hasManyThrough tests.