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