Integrates unit tests
Adds core unit tests for `replace()`
Merge pull request #188 from witrin/#184

Unit tests