Add travis and fix unit test.
Update .gitignore