tests for foldl, foldr, map