add shunit2 based unit tests.
Merge pull request #4 from hansode/feature-shunit2

add shunit2 based unit tests.