Add test for looping in pdl services