modify warning of compile
add error case unit test
add unit test
Merge pull request #4 from horiuchi/add-unittest

Add unittest