move tests for foldl, foldr, reduce, and mapreduce to test/reduce.jl