refactor Travis CI configuration
fix functional test