test macro calls within a loop