add more negtive unit tests
count tests throw exception
Merge pull request #4 from lzhan/unittest

add more negtive unit tests