Add tests for `intlist-loop`