Add test for mergedata working with list iteration