Add test and Travis CI