Add tests for replaceAll(fn) and wrap(fn) -- mark wrapAll and wrapWithin as TODO