- fixed a bug in replace - added tests for replace - added tests for wrap(2) and wrap(3)
Killed some output-copying written in tests for debugging purpose, no longer requried.