Testing inner loop