Added test for getFolderItemsWithForEach