Add test for empty anonymous foreach templates too