added fold, reduce and scan tests