Rewrite test to provide more assertions with less code.
Add a reducer reduce version as well as the fold version.