Added order tests for loops