Enhance tests for sentenceiterator

- refactored the SenteneIterator tests
- added exceptional test cases

fix #89