- fixed some typo in the doc
- finally added tests for copying and matching