tested loop statement