Enhance tests for sentenceiterator

- refactored the SenteneIterator tests
- added exceptional test cases