Prepare to unit test.
Add unit test.
Add travis-ci