test foldl & foldr