test loops and condition.

Change-Id: I81a4bea5d80f25fa525b725a5f48bd058df2c984