Refactor the tests for travis
Add travis.yml