Add unittest.
Add travis test config.
Change backup files path.
Merge branch 'dev'