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

add shunit2 based unit tests.