Follow the steps described in the ticket and make sure that:
- Units are spawned,
- Units are visible,
- A warning is printed,
- The formation is set.
Assert that cmpOwnership.GetOwner() == cmpPlayer.GetPlayerId() and thus this patch reduces the amount of Engine.QueryInterface calls by 3 each time a unit is trained.