Refactor test
Add TravisCi config