Test loop Program