Add test and configure travis-ci