test with single loop scenario