Testing foldLeft.