Test for @if with a list (#10452)

The issue was already fixed by other changes.

Change-Id: Idc6868c1e8b9384d54d2fd1c9d2c0a9b5445d0d1